/*
 * Copyright (c) 2017 22420103@QQ.COM 版权所有
 */
package com.lehe.common;

import com.lehe.common.utils.AppConfig;

/**
 * 系统常量定义
 * @author 王丹
 * @since 2017-02-22
 */
public class Contants {

    public static final String CHARSET_UTF = "UTF-8";
    /** grant_type openID */
    public static final String GRANT_TYPE_QUERY_OPENID = "authorization_code";
    /** 信息配置文件 */
    public static final String CONFIG_FILE = "application.properties";

    public static final String SESSION_USER_KEY = "session_user_key";
    public static final String SESSION_ADMIN_USER_KEY = "session_admin_user_key";
    /*商户号：1424411002
    开发者ID：wx427521c115d88513
    AppSecret：0bcc2d9a192c5cf264b07b1a9f5c2d61
    秘钥key：19810925chenjing20090406dengzhuh*/

    /** 微信公众号app_id */
    public static final String APP_ID = "wxb0055562a8ee0a90";
    public static final String APP_ID_PAY = "";
    /** 微信公众号app_secret */
    public static final String APP_SECRET = "d4fdb33f0ff7ca78ccee998fa19fc77d";
    public static final String APP_SECRET_PAY = "";
    // token
    public static final String TOKEN_FOR_KWINER = AppConfig.getInstance().getProperty("weixin.token");
    // aesKey
    public static final String AES_KEY_FOR_KWINER = AppConfig.getInstance().getProperty("weixin.aes_key");
    // grant_type
    public static final String GRANT_TYPE_FOR_KWINER = AppConfig.getInstance().getProperty("weixin.grant_type");

    public static final String WE_CHAT_BASE = "https://api.weixin.qq.com/cgi-bin";

    public static final String WE_CHAT_ACCESS_TOKEN_PARAM = "?access_token=%s";

    public static final String WE_CHAT_TOKEN = WE_CHAT_BASE + "/token";

    public static final String WE_CHAT_MENU_CREATE = WE_CHAT_BASE + "/menu/create";

    public static final String WE_CHAT_QUERY_USER_INFO = WE_CHAT_BASE + "/user/info";

    public static final String WE_CHAT_QUERY_MENU_GET = WE_CHAT_BASE + "/menu/get";

    //https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code
    public static final String WE_USER_OPENID = "https://api.weixin.qq.com/sns/oauth2/access_token";

    //https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN
    public static final String WE_USER_UNIONID = "https://api.weixin.qq.com/sns/userinfo";

    //https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=7_4
    //http://blog.csdn.net/fengshizty/article/details/45564685
    public static final String WE_CHAT_PAY_BASE = "https://api.mch.weixin.qq.com/mmpaymkttransfers/sendredpack";

    public static final String PAY_KEY = "19810925chenjing20090406dengzhuh"; //lwh生产:96DEK49DCK1230DERT000AACCD12P123

    public static final String PAY_MCH_ID = "1424411002";//lwh生产：1488319472

    public static final String PAY_SEND_NAME = "";

    public static final String PAY_CERT_PATH = "";

    public static final String PAY_REDPACK_ALLOW_IP = AppConfig.getInstance().getProperty("redpack.allow.ip");

    public static final String PAY_REDPACK_TEST_IP = AppConfig.getInstance().getProperty("redpack.test.ip");

    public static final Integer ADMIN_USER_STATUS_ACTIVE = 0;

    public static final Integer ADMIN_USER_STATUS_FORBIDDEN = 1;

    //public static final Long ADMIN_AGENT_ID = 9L;

    public static final Integer USER_CHARGE_SOURCE_TYPE_ADMIN_TO_PLAYER = 0;

    public static final Integer USER_CHARGE_SOURCE_TYPE_WX = 1;

    public static final Integer USER_CHARGE_SOURCE_TYPE_ADMIN_TO_EMPLOYEE = 2;

    public static final Integer USER_CHARGE_TYPE_ADD = 0;

    public static final Integer USER_CHARGE_TYPE_SUB = 1;

    public static final Integer USER_CHARGE_OP_TYPE_ADD = 0;

    public static final Integer USER_CHARGE_OP_TYPE_SUB = 1;
}
